﻿using System;
using System.Collections.Generic;
using System.Text;
using WeatherSystem.Application.MsgHandler;
using WeatherSystem.Data.Response;

namespace WeatherSystem.Application.ContentAdapter.Base
{
    abstract class AdapterBase
    {
        public abstract Type AdaptType { get; }
        public bool Adapt(Message msg)
        {
            return (msg.GetType() == AdaptType);
        }
        public bool Adapt(Type msgType)
        {
            return AdaptType == msgType;
        }
    }

    interface Adapter
    {
        ResponseMessageBase Handle(MsgHandler.Message message);
    }
}
